package com.wechatapp.mengyao.poetry.controller;

import com.wechatapp.mengyao.poetry.core.RestResponse;
import com.wechatapp.mengyao.poetry.entity.TabBarItem;
import com.wechatapp.mengyao.poetry.service.TabBarItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yanghuaxu
 * @date 2025/7/30 15:54
 */
@RestController
@RequestMapping("/api/v1/tab_bar")
public class TabBarController {

    @Autowired
    private TabBarItemService tabBarItemService;

    @GetMapping("/item")
    public RestResponse<List<TabBarItem>> getEnableTabBarItemList() {
        return RestResponse.ok(tabBarItemService.getEnableTabBarItemList());
    }

}
